﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    HolidayCriteria
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <link rel="stylesheet" type="text/css" href="../../Content/jquery-ui-1.8.16.custom.css" />
    <script type="text/javascript" src="../../Scripts/jquery-ui-1.8.16.custom.min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Holiday Report Criteria</h2>
    <br />
    <form method="post" target="_blank" action='<%= Html.AttributeEncode(Url.Action("HolidayReport")) %>'>
    <fieldset style="width: 440px;">
        <legend>Period</legend>
        <table style="width: 440px;">
            <tr>
                <td>
                    <span style="margin-top: 9px;" class="left">From&nbsp;</span>
                    <div class="calendar-field">
                        <%= Html.TextBox("txtDateFrom", ViewData("DateFrom"), New With {.class = "text date-input"})%>
                    </div>
                </td>
                <td>
                    <span style="margin-top: 9px;" class="left">To&nbsp;</span>
                    <div class="calendar-field">
                        <%= Html.TextBox("txtDateTo", ViewData("DateTo"), New With {.class = "text date-input"})%>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                <br />
                
                <input type="submit" class="button right" value="Create Report" />
                
                </td>
            </tr>
        </table>
    </fieldset>
    </form>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#txtDateFrom, #txtDateTo").datepicker({
                showOn: "button",
                buttonImage: "../../Content/img/calendar.gif",
                buttonImageOnly: true,
                dateFormat: 'dd-M-yy'
            });

        });
</script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="CurrentMenuIDContent" runat="server">reportMenu</asp:Content>
